/**
 * Created by zhangjing on 2018/3/7.
 */
var express=require('express');
var router = express.Router();
var config=require('./config')

if (!config.debug) { // 这个兼容破坏了不少测试
    router.get('/:name', function (req, res) {
        res.redirect('/user/' + req.params.name)
    })
}

module.exports=router;